<td valign="top">
	 <link href="css/banner/banner.css" rel="stylesheet" type="text/css">
	 <script type="text/javascript" src="js/bannerslide/banner.js"></script>
		
		<div class="slideshow">

			<ul class="slides">
				<?php 
				$Q = "SELECT * from banner where display = 'yes' and image is not null limit 0,3 ";
				$cBanners= $db->sql_total($Q);
				$rBanners = $db->sql_fetch($Q);
				if($cBanners <> 0){
					$num = 1;
					foreach($rBanners as $i){
						if($num == 1){
							echo '
							<li style="visibility: visible; opacity: 1;" class="slide" id="image'.$num.'">
							<a href="'.domainFullWebUrl().'article.php?id='.$i['article_id'].'">
								<img alt="'.$i['title'].'" width="727" height="260" src="'.IMAGEBANNER.$i['image'].'"></a></li>
								';
						} else {
							echo '
							<li style="visibility: hidden; opacity: 1;" class="slide" id="image'.$num.'">
							<a href="'.domainFullWebUrl().'article.php?id='.$i['article_id'].'">
								<img alt="'.$i['title'].'" width="727" height="260" src="'.IMAGEBANNER.$i['image'].'"></a></li>
								';
						}
						$num++;
					}
				}
			   ?>
			</ul>
		</div>
</td>